export default {
	apiUrl: 'apiUrl',
	template: `
		<a v-on:click="closeParent"> 调用父组件方法，关闭闭口 </a><br><br>
		<div style="height:1000px" v-on:click="open">
		这是详细内容
		</div>
		<component v-bind:is="details"></component>
	`,
	data: function() {
		return {
			apiUrl: 'apiUrl2',
			reqParam:'',/* reqParam:父组件参数（保留属性名） */
			sysContent:'sysContent',
			details:'empty'
		}
	},
	mounted(){
		console.log('把父组件要调用的方法 传过去给父组件');
		this.parentCallback(this);
		this.form = 'form';
	},
	
	methods: {
		submit(){
			console.log('子组件的表单提交',this.form);
		},
		open(){
			ComponentUtil.openDialog({
				url : '/view/sys/user/userdetails',
				parentInst: this ,//父组件vue组件实例
				componentSlot: 'details',
				title:'用户详细信息2',
				reqParam:{id:'123456'},
			});
		},
		closeParent(){
			console.log(this.apiUrl);
			
		}
	}
}